﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpInterfaceTeach
{
    /// <summary>
    /// 设备报警接口实现类
    /// </summary>
    public class EquipAlarmImpl : IEquipAlarm
    {
        public void ClearAlarm()
        {
            Console.WriteLine("设备报警已经清除");
        }

        public string StartAlarm(string equipId)
        {
            string alarmInfo = $"设备编号为：{equipId}的设备出现报警！请检查";

            return alarmInfo;
        }
    }
}
